package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_toy_house_candy")
public class LogToyHouseCandy {

    @FieldTypeAnnotation(desc = "玩家ID")
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID")
    private int activityId;
    @FieldTypeAnnotation(desc = "途径")
    private int way;
    @FieldTypeAnnotation(desc = "道具ID")
    private int itemId;
    @FieldTypeAnnotation(desc = "变更数量")
    private long getCount;
    @FieldTypeAnnotation(desc = "结果，0成功，1没活动，2没解锁，3自动发奖")
    private int ret;
    @FieldTypeAnnotation(desc = "当前数量")
    private long nowCount;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogToyHouseCandy(long userId, int activityId, int way, int itemId, long getCount, int ret, long nowCount) {
        this.userId = userId;
        this.activityId = activityId;
        this.way = way;
        this.itemId = itemId;
        this.getCount = getCount;
        this.ret = ret;
        this.nowCount = nowCount;
        this.time = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getWay() {
        return way;
    }

    public void setWay(int way) {
        this.way = way;
    }

    public long getGetCount() {
        return getCount;
    }

    public void setGetCount(long getCount) {
        this.getCount = getCount;
    }

    public int getRet() {
        return ret;
    }

    public void setRet(int ret) {
        this.ret = ret;
    }

    public long getNowCount() {
        return nowCount;
    }

    public void setNowCount(long nowCount) {
        this.nowCount = nowCount;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }
}
